package com.service.impl;

import com.dao.StudentDao;
import com.domain.Student;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class StudentService implements com.service.StudentService {
    @Resource
    private StudentDao studentDao;
    @Override
    public int addStudent(Student student) {
        int nums = studentDao.insertStudent(student);
        return nums;
    }
    @Override
    public Student findStudents(Student student)
    {
        return studentDao.selectStudents(student);
    }
}
